package com.zs.controller;

import com.zs.entity.ClassInfo;
import com.zs.service.ClassInfoService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 班级控制器
 * </p>
 * @Author: Shun
 * @CreateTime: 2019-07-18 12:21
 * @Emil: 381889220@qq.com
 */
@RestController
@RequestMapping("/cla/")
public class ClassController {

    @Resource
    private ClassInfoService classInfoService;

    @GetMapping("get")
    public List<ClassInfo> onGet(){
        return classInfoService.get();
    }

}
